#ifndef WNDBGIMPORT_H
#define WNDBGIMPORT_H
#include <windows.h>
#include "image.h"
#include "sCombo.h"
#define u8 unsigned char
#define u16 unsigned short
#define u32 unsigned long
class wndBGImport{
public:
 wndBGImport();
~wndBGImport();
 HWND me;
 Image Pic;
 long  PCPal[256];
 short GPal[256];
 u8    buffer[64000];
 u8    palpos;
 u16   tilemap[32000];

 u16   palsize;
 u32   tilesize;
 u32   mapsize;
 int   Type; 
 RECT  map;//Left Will the position and right will be the size of the palette
           //top will be starting point of tiles in RAM
 sCombo	 cboPal;
 TileBuffer Tiles;
 int   picloaded;
 char  FileString[1024];
 int   MakeFiles();
 int   LoadFiles();
 int   DelFiles();
 char  picname[1024];
 int   Draw();
 int   FillCustBG();
 int   SaveCustBGROM();
 int   SaveCustTileset();
 int   pW;
 int   pH;
 int   FillOutArray(u8* array);

};
#endif 